<?php
defined("_JEXEC") or die("Restricted access");

jimport("joomla.application.component.model");

class JoomlaIniTranslatorModelRun extends JModel
{
	function getTranslator() {
		$ids = JRequest::getVar('cid');
		$id = $ids[0];
		
		$query = 'SELECT *'
		. ' FROM `#__joomlainitranslator`'
		. ' WHERE `id` = '.$id
		. ' LIMIT 1';
		$this->_db->setQuery( $query );

		if (!($row = $this->_db->loadObjectList())) {
			$this->setError( $table->getError() );
			return false;
		}
		return $row;
	}
}
?>